package batframework.mvc.render;


public class JsonRender extends TextRender
{
	private final static String contentType = "application/json";
	
	@Override
	public void render()
	{
		response.setHeader("Pragma", "no-cache");	
		response.setHeader("Cache-Control", "no-cache");
		response.setDateHeader("Expires", 0);
		super.render();
	}
	
	/**
	 * 
	 * @ author bmyues
	 * @param data
	 */
	public JsonRender(Object data)
	{
		super();
	}
	
	/**
	 * 
	 * @ author bmyues
	 * @param data
	 */
	public JsonRender(String data)
	{
		super(data);
	}

	@Override
	public String getContentType()
	{
		return contentType;
	}
	
}
